﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using famails.iface;
using famails.dao;
using famails.dto;
namespace famails.bus
{
    /// <summary>
    /// Summary description for ContentSendEventBUS
    /// </summary>
    public class ContentSendEventBUS : IContentSendEvent
    {
        ContentSendEventDAO cseDao = new ContentSendEventDAO();
        #region IContentSendEvent Members

        public object tblContentSendEvent_insert(ContentSendEventDTO dt)
        {
           return cseDao.tblContentSendEvent_insert(dt);
        }

        public int tblContentSendEvent_Update(ContentSendEventDTO dt)
        {
            return cseDao.tblContentSendEvent_Update(dt);
        }

        public void tblContentSendEvent_Delete(int id)
        {
            cseDao.tblContentSendEvent_Delete(id);
        }

        public System.Data.DataTable GetAll()
        {
            return cseDao.GetAll();
        }

        public System.Data.DataTable GetById(int id)
        {
            return cseDao.GetById(id);
        }

        public System.Data.DataTable GetByEventId(int eventId)
        {
            return cseDao.GetByEventId(eventId);
        }
        public System.Data.DataTable GetReportByEventId(int eventId)
        {
            return cseDao.GetReportByEventId(eventId);
        }

        #endregion

        internal bool CheckContentSent(int contentId)
        {
            return cseDao.CheckContentSent(contentId);
        }
    }
}